package com.wzdigit.wms.common.utils;

import cn.hutool.core.date.DateUtil;
import com.wzdigit.wms.web.service.common.wms2sap.ZDT_MsgHeader;

import java.util.Date;

public class SapWebServiceUtil {
    private static final String SOURCE = "WMS";
    private static final String DESTINATION = "SAP";

    public static ZDT_MsgHeader  getHeader(){
        // 消息头
        ZDT_MsgHeader header = new ZDT_MsgHeader();

        header.setSOURCE(SOURCE);
        header.setDESTINATION(DESTINATION);
        String dateStr = DateUtil.format(new Date(),"yyyyMMdd");//日期
        header.setDATE(dateStr);
        header.setTIME(DateUtil.format(new Date(),"HHssmm"));
        header.setSTATUS("");
        header.setMESSAGE("");
        return header;
    }
}
